home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 076-100 / disk_076 / include / devices / prtbase.g < prev    next >
Text File  |  1992-05-06  |  2KB  |  92 lines

  1. uint P_STKSIZE = 0x800;
  2.  
  3. type
  4.     Library_t = unknown 34,
  5.     MsgPort_t = unknown 34,
  6.     Segment_t = unknown 4,
  7.     IOExtPar_t = unknown 62,
  8.     IOExtSer_t = unknown 82,
  9.     timerequest_t = unknown 40,
  10.     Task_t = unknown 92,
  11.     Preferences_t = unknown 224,
  12.     Segment_t = unknown 4,
  13.  
  14.     DeviceData_t = struct {
  15.     Library_t dd_Device;
  16.     *byte dd_Segment;
  17.     *byte dd_ExecBase;
  18.     *byte dd_CmdVectors;
  19.     *byte dd_CmdBytes;
  20.     uint dd_NumCommands;
  21.     },
  22.  
  23.     PrinterData_t = struct {
  24.     DeviceData_t pd_Device;
  25.     MsgPort_t pd_Unit;
  26.     Segment_t pd_PrinterSegment;
  27.     uint pd_PrinterType;
  28.     *PrinterSegment_t pd_SegmentData;
  29.     *byte pd_PrintBuf;
  30.     proc()int pd_PWrite;
  31.     proc()int pd_PBothReady;
  32.     union {
  33.         IOExtPar_t pd_p0;
  34.         IOExtSer_t pd_s0;
  35.     } pd_ior0;
  36.     union {
  37.         IOExtPar_t pd_p1;
  38.         IOExtSer_t pd_s1;
  39.     } pd_ior1;
  40.     timerequest_t pd_TIOR;
  41.     MsgPort_t pd_IORPort;
  42.     Task_t pd_TC;
  43.     [P_STKSIZE]byte pd_Stk;
  44.     ushort pd_Flags;
  45.     ushort pd_pad;
  46.     Preferences_t pd_Preferences;
  47.     ushort pd_PWaitEnabled;
  48.     },
  49.  
  50.     PrinterExtendedData_t = struct {
  51.     *char ped_PrinterName;
  52.     proc()void ped_Init, ped_Expunge, ped_Open, ped_Close;
  53.     ushort ped_PrinterClass, ped_ColorClass, ped_MaxColums,ped_NumCharSets;
  54.     uint ped_NumRows;
  55.     ulong ped_MaxXDots, ped_MaxYDots;
  56.     uint ped_XDotsInch, ped_YDotsInch;
  57.     ***char ped_Commands;
  58.     proc()int ped_DoSpecial, ped_Render;
  59.     ulong ped_TimeoutSecs;
  60.     **char ped_8BitChars;
  61.     },
  62.  
  63.     PrinterSegment_t = struct {
  64.     Segment_t ps_NextSegment;
  65.     ulong ps_runAlert;
  66.     uint ps_Version, ps_Revision;
  67.     PrinterExtendedData_t ps_PED;
  68.     };
  69.  
  70. ushort
  71.     PPCB_GFX        = 0,
  72.     PPCF_GFX        = 1 << PPCB_GFX,
  73.     PPCB_COLOR        = 1,
  74.     PPCF_COLOR        = 1 << PPCB_COLOR,
  75.  
  76.     PPC_BWALPHA     = 0,
  77.     PPC_BWGFX        = 1,
  78.     PPC_COLORGFX    = 3,
  79.  
  80.     PCC_BW        = 1,
  81.     PCC_YMC        = 2,
  82.     PCC_YMC_BW        = 3,
  83.     PCC_YMCB        = 4,
  84.  
  85.     PCC_4COLOR        = 0x4,
  86.     PCC_ADDITIVE    = 0x8,
  87.  
  88.     PCC_WB        = 0x9,
  89.     PCC_BGR        = 0xa,
  90.     PCC_BGR_WB        = 0xb,
  91.     PCC_BGRW        = 0xc;
  92.